<?php
//+---------------------------------------------------------------------------------------------------------------------
//| 人生是荒芜的旅行，冷暖自知，苦乐在心
//+---------------------------------------------------------------------------------------------------------------------
//| Author:Janmas <janmas@126.com>
//+---------------------------------------------------------------------------------------------------------------------
//| 
//+---------------------------------------------------------------------------------------------------------------------


namespace helper\upload;


use think\File;

class Local extends BaseUpload
{

	public function upload(File $file=null){
        $this->validate($file);
        $savename = str_replace('\\','/',\think\facade\Filesystem::disk('public')->putFile('storage', $file));
		$this->fileInfo['path'] =  $savename;
		return self::$instance;
	}

}